{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" href="/public/lboyue/css/newStyle.css">
{/block}
{block name="body"}
{include file="public/header" /}
<div class="bodySection">
            
    <div class="centerSection">

		<div class="userLeft_block">
			{include file="public/leftuser" /}
		</div>

        <div class="userRight_block">
            <div class="userMoney">
                <div class="section_title2">账户资产</div>
                <div class="userMoney_block">
                    <div class="title">
                        <span>余额：<i>{$egold}</i>{:config('virtualname')}</span>
                        <span>VIP会员：{if $is_vip>0}{if $vip_enddate>=time()}还剩<i>{php} echo round(($vip_enddate-time())/86400);{/php}</i>天过期{else/}已过期{/if}{else/}未开通{/if}</span>
                    </div>

                    <div class="rightButton">
                        <a href="/pay/index">充值</a>
                    </div>
                </div>
            </div>

            <div class="userMoney  addMarginTop20">
                <div class="section_title2">充值记录</div>
                    <div class="record_block">
                    <table class="record_table" border="0" width="100%">
                        <tr>
                            <th>
                                <span class="record_td_center">类型</span>
                            </th>
                            <th>
                                <span class="record_td_left">订单号</span>
                            </th>
                            <th>
                                <span class="record_td_left">充值金额</span>
                            </th>
                            <th>
                                <span class="record_td_left">充值时间</span>
                            </th>
                            <th>
                                <span class="record_td_left">充值方式</span>
                            </th>
                            <th>
                                <span class="record_td_left">充值状态</span>
                            </th>
                            
                        </tr>
						{volist name="list" id="vo"}
						<tr>
                            <td>
                                <span class="record_td_center">
					{switch name="vo.type" }
						{case value="1"}普通充值{/case}
						{case value="2"}VIP会员{/case}
						{case value="3"}活动充值{/case}
						{default /}普通充值
					{/switch}</span>
                            </td>
                            <td>
                                <span class="record_td_left">{$vo.out_trade_no}</span>
                            </td>
                            <td>
                                <span class="record_td_left">{$vo.money}</span>
                            </td>
                            <td>
                                <span class="record_td_left">{$vo.create_time|date="Y-m-d H:i:s", ###}</span>
                            </td>
                            <td>
                                <span class="record_td_left">{if $vo.paytype == "alipay"}
                	支付宝支付
                	{else}
                	微信支付
                	{/if}</span>
							</td>
                            <td>
                                <span class="record_td_left">{if $vo.status==1}
                	已支付
                	{else}
                	未完成
                	{/if}</span>
                            </td>
                        </tr>
						{/volist}
                    </table>
					{$list->render()}
					{empty name="list"}
                    <div class="nodata">
                        目前暂无任何充值记录哦～
                    </div>
					{/empty}
                </div>
                            </div>
        </div>
    </div>

        </div>
{block name="include"}{include file="public:footer" /}{/block}
{/block}
{block name="script"}
<script>
    $(document).ready(function () {
        bindnews();
        bindbookshelf();
        bindnav();
    });

</script>
{/block}


